<template>
  <div class="aboutUs">
    <div class="headerBox">
      <van-nav-bar
        title="关于我们"
        left-arrow
        @click-left="onClickLeft"
      ></van-nav-bar>
    </div>
    <div style="width:100%">
      <div class="html_box" v-html="allHtml"></div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      type: true,
      allHtml:''
    };
  },
  created() {
    this.setInfo();
  },
  methods: {
    async setInfo() {
      let self = this;
      let res = await this.$http.getArticle({
        id: 11
      })
      if (res) {
        this.allHtml = res.data.content
        // console.log(res)
      }
    },
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>
<style scoped>
.aboutUs {
  height: 100vh;
  background: #fff;

}
.html_box{
  width: 6.74rem;
  margin: .4rem auto;
}
.html_box img{
  width: 100% !important;
}
</style>
